package com.silver.weibo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.silver.weibo.utils.MyContents;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Users implements Serializable {
    @TableId(type = IdType.AUTO)
    public Integer id;
    public String userLoginname;
    public String userPassword;
    public String userNickname;
    public String userImage;
    public Integer userProvince;
    public Integer userCity;
    public Integer userSex;
    public Date userBirthday;
    public String userSignature;

    public String getUserBirthday() {
        return MyContents.simpleDateFormat.format(this.userBirthday);
    }



}
